package com.xu;

import com.xu.pojo.Student;
import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class test01 {
    @Test
    public void test01(){
        ClassPathXmlApplicationContext ca = new ClassPathXmlApplicationContext("applicationContext.xml");
        Student student = (Student) ca.getBean("student");
        System.out.println(student);
    }

    @Test
    public void test02(){
        ClassPathXmlApplicationContext ca = new ClassPathXmlApplicationContext("applicationContext.xml");
        com.xu.pojo.pojo02.Student student = (com.xu.pojo.pojo02.Student) ca.getBean("student01");
        System.out.println(student);
    }
}
